TooltipChild

interface TooltipChild

A TooltipChild is a child of some parent element that may or may not need to present tooltip and narration information to its parent. This system is used to compile tooltips and narrations from pieces rather than having to manually build the final tooltip in the parent, or having whichever elements tooltip that renders last "winning".

Author

fzzyhmstrs

Since

0.6.0

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun provideNarrationLines(): List<Text>

Provides a list of text for appending into a Narration Hint. By default this will use the same lines passed from provideTooltipLines, with predefined values for the inputs

Link copied to clipboard
open fun provideTooltipLines(mouseX: Int, mouseY: Int, parentSelected: Boolean, keyboardFocused: Boolean): List<Text>

Provides a list of text lines for appending to a tooltip. Unlike appending in MC, the parent has final say on compiling the tooltip from the pieces given to it.